using System.ComponentModel.DataAnnotations;

namespace VOL.Entity.DomainModels
{
    /// <summary>
    /// 退货明细创建DTO，不包含系统自动生成的字段
    /// </summary>
    public class ReturnOrderDetailCreateDto
    {
        /// <summary>
        /// 进货明细项ID
        /// </summary>
        [Required]
        public long PurchaseOrderItemId { get; set; }

        /// <summary>
        /// 退货数量
        /// </summary>
        [Required]
        [Range(1, int.MaxValue, ErrorMessage = "退货数量必须大于0")]
        public int ReturnNumber { get; set; }

        /// <summary>
        /// 退货金额
        /// </summary>
        [Required]
        [Range(1, long.MaxValue, ErrorMessage = "退货金额必须大于0")]
        public long ReturnMoney { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
    }
}